package cn.itcast.Exercise5;

class Point
{
    public Point (int x, int y) {
        this.x = x ; this.y = y ;
    }
    public void affiche(){
        System.out.println ("Coordonnees : " + x + " " + y) ;
    }
    private int x, y ;
}
class PointNom extends Point{
    String name;
    public PointNom(int x, int y, String name) {
        super(x, y);
        this.name = name;
    }
    public void affiche(){
        System.out.print(name+" ");
        super.affiche();
    }
}
public class Exercise5 {
    public static void main(String[] args) {
        new PointNom(1, 2, "asdd").affiche();
    }
}
